<template>
  <div>
    <el-button @click="getList"> 获取数据信息 </el-button>

    <div>Route 信息</div>
   </div>
</template>

<script>
import { fetchList } from "@/api/article";

export default {
  name: "News",
  data() {
    return {
      list: [],
    };
  },
  mounted() {
    console.log("$route.matched", this.$route.matched);
  },

  methods: {
    async getList() {
      const { data: res } = await fetchList();
      this.list = res.data.list;
    },
  },
};
</script>

<style lang="scss" scoped></style>
